#ifndef QUERY_H
#define QUERY_H

#include <QWidget>
#include <QTcpSocket>
#include <QNetworkProxy>
#include <QPalette>

namespace Ui {
class Query;
}

class Query : public QWidget
{
    Q_OBJECT
private:
    QTcpSocket* socket;
public:
    explicit Query(QWidget *parent = nullptr);
    ~Query();
public:
    void set_socket(QTcpSocket* socket);
private:
    Ui::Query *ui;
signals:
    void myquery_signal(QStringList strlist,bool is_root);

    void my_back_to_hrORmanagerop_signal();
private slots:
    void myquery_slot(QStringList strlist,bool is_root);
    void on_modify_btn_clicked();
    void on_delete_btn_clicked();
    void on_back_btn_clicked();
};

#endif // QUERY_H
